import request from "../request";
// 获取全部MV列表
export const getAllMv = (area, type, order, offset, limit)=>{
	return request({
		url: "/mv/all",
		params: {
			area,
			type,
			order,
			offset,
			limit,
		},
	});
}
// 获取MV详情数据
export const getMvDetail = (mvid)=>{
	return request({
		url: "/mv/detail",
		params: {
			mvid,
		},
	});
}
// 获取相似mv
export const getSimiMv = (mvid)=>{
	return request({
		url: "/simi/mv",
		params: {
			mvid,
		},
	});
}
// 获取mv播放地址
export const getMvUrl = (id)=>{
	return request({
		url: "/mv/url",
		params: {
			id,
		},
	});
}
// 收藏/取消收藏 MV
export const subMv = (t, mvid)=>{
	return request({
		url: "/mv/sub",
		params: {
			t,
			mvid,
			timestamp: Date.parse(new Date()),
		},
	});
}